package com.itheima.static_case.Demo1;

public class Student {
    static String name;

    int age;

    public Student() {

    }

    public Student(int age) {
        this.age = age;
    }

    public static String getName() {
        return name;
    }

    public static void setName(String name) {
        Student.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public static void testStatic() {
        System.out.println("这里是静态方法");
    }

    public void testNoStatic() {
        System.out.println("这里是成员方法");
    }
}
